package com.lean.android.adsdk

import android.app.Dialog
import android.content.Context
import android.view.WindowManager

class CustomDialog(context: Context) : Dialog(context, R.style.CustomDialogStyle) {
    override fun show() {
        window?.apply {
            setLayout(
                WindowManager.LayoutParams.MATCH_PARENT,
                WindowManager.LayoutParams.MATCH_PARENT
            )
            setBackgroundDrawableResource(android.R.color.transparent)
            addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS)
        }
        super.show()
    }
}